<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component"
	xmlns:comp="http://java.sun.com/jsf/composite"
	xmlns:c="http://java.sun.com/jsp/jstl/core">
	<div align="center"><ice:menuBar id="menuBar"
		orientation="horizontal" displayOnClick="true" noIcons="true">
		<ice:menuItem value="Monitoring" id="edit" onclick="return false;">
			<ice:menuItem id="console" value="Console">
				<ice:menuItem id="startStop"
					value="#{pushLogger.on ? 'Stop' : 'Start'}"
					actionListener="#{pushLogger.startStop}">
				</ice:menuItem>
				<ice:menuItem value="Clean" id="clean"
					actionListener="#{pushLogger.reset}">
				</ice:menuItem>
				<ice:menuItem value="Rich logging #{pushLogger.rich ? 'off' : 'on'}"
					id="rich" actionListener="#{pushLogger.richToggle}">
				</ice:menuItem>
			</ice:menuItem>
		</ice:menuItem>
		<ice:menuItem value="Management" id="manage" onclick="return false;">
			<ice:menuItem id="reload0" value="Registrations"
				actionListener="#{panel.command}">
				<f:param name="#{facesFactory['GK_COMMAND_TYPE']}"
					value="PRINT_ALL_REGISTRATIONS"></f:param>
			</ice:menuItem>

			<ice:menuItem id="reload1" value="Current Calls"
				actionListener="#{panel.command}">
				<f:param name="#{facesFactory['GK_COMMAND_TYPE']}"
					value="PRINT_CURRENT_CALLS"></f:param>
			</ice:menuItem>

			<ice:menuItem id="reload2" value="Reload Configuration"
				actionListener="#{panel.command}">
				<f:param name="#{facesFactory['GK_COMMAND_TYPE']}"
					value="RELOAD_CONFIGURATION"></f:param>
			</ice:menuItem>

			<ice:menuItem id="reload3" value="Statistics"
				actionListener="#{panel.command}">
				<f:param name="#{facesFactory['GK_COMMAND_TYPE']}"
					value="STATISTICS"></f:param>
			</ice:menuItem>

			<ice:menuItem id="reload4" value="Version"
				actionListener="#{panel.command}">
				<f:param name="#{facesFactory['GK_COMMAND_TYPE']}" value="VERSION"></f:param>
			</ice:menuItem>


			<ice:menuItem id="unregister" value="Unregister"
				actionListener="#{panel.destroy}">
			</ice:menuItem>
		</ice:menuItem>
	</ice:menuBar> <br />

	<h:dataTable value="#{pushLogger.messages}" id="table" var="mesg"
		cellspacing="0" cellpadding="0" width="100%">
		<h:column rendered="#{pushLogger.rich}">
			<div class="chatLine">
			<div class="chatName"><h:outputText value="#{mesg.sender}"
				escape="false" /></div>

			<div class="chatTime"><h:outputText value="#{mesg.date}"
				escape="false" /></div>

			<div class="chatText"><h:outputText value="#{mesg.content}" escape="false"/></div>
			</div>
		</h:column>
		<h:column rendered="#{!pushLogger.rich}">
			<div class="chatText"><h:outputText value="#{mesg.content}" escape="false"/></div>
		</h:column>
	</h:dataTable></div>
</ui:composition>
